﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using Newtonsoft.Json;

namespace StevensReceipts.Domain
{
    public class Invoice : ITransaction
    {
        [Key]
        public int Id { get; set; }

        public DateTime? Created { get; set; }

        public DateTime? Modified { get; set; }

        public int ContactId { get; set; }

        [ForeignKey("ContactId")]
        [JsonIgnore]
        public Contact TransactionContact { get; set; }

        public DateTime TransactionDate { get; set; }

        public DateTime? DueDate { get; set; }

        public double Total { get; set; }

        public string Reference { get; set; }

        public bool IncludeTax { get; set; }

        public bool IsTaxInclusive { get; set; }
    }
}
